<!DOCTYPE html>
<html>
<head>
	<title>{$pageData.title}</title>
	<script type="text/javascript" src="__STATIC__/common/js/jquery.min.js"></script>
	<link rel="stylesheet" href="__STATIC__/manage/css/common.css" type="text/css">
	<link rel="stylesheet" href="__STATIC__/manage/css/member.css" type="text/css">
</head>
<body>
<div id="box-header"></div>
<div id="box-main">
	<div id="box-content">
		<div class="wrapper">
			<form name="postForm" method="post" action="{:url('goods.handle/edit')}" enctype= multipart/form-data>
				<table id="dataTable" class="dataTable" width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td>商品名称</td>
						<td><input type="text" name="title" value="{$goodsDate.title}"></td>
					</tr>
					<tr>
						<td>商品支付使用货币</td>
						<td>
							<select name="coin_id" >
								<option value="1">现金币</option>
								<option value="2">奖金币</option>
							</select>
						</td>
					</tr>
					<tr>
						<td>商品分类</td>
						<td>
							<select name="cate_id" >
								<option value="1">重复消费</option>
								<option value="2">提货专区</option>
							</select>
						</td>
					</tr>
					<tr>
						<td>商品单价</td>
						<td><input type="text" name="price" value="{$goodsDate.price}"></td>
					</tr>
					<tr>
						<td>商品所得业绩</td>
						<td><input type="text" name="score" value="{$goodsDate.score}"></td>
					</tr>
					<tr>
						<td>积分抵扣</td>
						<td><input type="text" name="credit" value="{$goodsDate.credit}"></td>
					</tr>
					<tr>
						<td>商品描述</td>
						<td><input type="content" name="content" value="{$goodsDate.content}"></td>
					</tr>
					<tr>
						<td>商品图片</td>
						<td><input type="file" name="photo" /></td>
					</tr>
					<tr>
						<td>商品单位</td>
						<td><input type="text" name="unit" value="{$goodsDate.unit}"></td>
					</tr>
					<tr>
						<td>商品重量(KG)</td>
						<td><input type="text" name="weight" value="{$goodsDate.weight}"></td>
					</tr>
					<tr>
						<td>商品库存数量</td>
						<td><input type="text" name="total" value="{$goodsDate.total}"></td>
					</tr>
					<tr>
						<td>商品发货地</td>
						<td><input type="text" name="city" value="{$goodsDate.city}"></td>
					</tr>
					<tr>
						<td>是否推荐</td>
						<td>
							<select name="is_tj" >
								<option value="1">是</option>
								<option value="0">否</option>
							</select>
						</td>
					</tr>
					<tr>
						<td>是否复消</td>
						<td>
							<select name="is_fx" >
								<option value="1">是</option>
								<option value="0">否</option>
							</select>
						</td>
					</tr>
					<tr>
						<td>是否上架</td>
						<td>
							<select name="status" >
								<option value="1">是</option>
								<option value="0">否</option>
							</select>
						</td>
					</tr>
					<input type="hidden" name="goods_id" value="{$goodsDate.id}" />
					<tr>
						<td></td>
						<td><input type="submit" value="修改商品" /></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<div class="clearfix"></div>
</div>

<script type="text/javascript">

// function addGoods(){
// 	var theData = $("form[name=postForm]").serialize();
// 	$.ajax({
// 		'type':'post',
// 		'dataType':'json',
// 		'data':theData,
// 		'url':"{:url('goods.handle/add')}",
// 		'success':function(data){
// 			alert(data.msg);
// 		}
// 	});
// }
</script>
</body>
</html>